Probably this would be OK.
The copyFiles() method finally gets down to copying the file. The loop that does the work is just a few statements long!
copyFiles()
class CopyMaker { String sourceName, destName; BufferedReader source; BufferedWriter dest; String line; private void copyFiles() { try { line = source. ; while ( ) { dest. (line); line = source. ; } } catch ( IOException iox ) { System.out.println("Problem reading or writing" ); } } }
Click in the blanks.